
package risk.game.entity.unit;

import javax.swing.ImageIcon;

import risk.game.entity.EntityConstants;
import risk.game.entity.map.Land;

/**
 *
 * @author Oz
 */
public class Miniature implements EntityConstants{

    private static int unitId = 0;
    private int id;
    private int unitType;
    private double attack;
    private double defend;
    private int move;

    private ImageIcon image;
    private Land land;
    
    /**
     * Currently constructor not in use
     * @param type
     * @param attack
     * @param defend
     * @param move
     */
    public Miniature(int unitType, int attack, int defend, int move) {
    	this(unitType);
    	this.attack = attack;
        this.defend = defend;
        this.move = move;
    }
    
    /**
     * 
     * @param type
     */
    public Miniature(int unitType) {
        this.id = unitId++;
        this.unitType = unitType;    	
    }

	public static int getUnitId() {
		return unitId;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUnitType() {
		return unitType;
	}

	public void setUnitType(int unitType) {
		this.unitType = unitType;
	}

	public double getAttack() {
		return attack;
	}

	public void setAttack(double attack) {
		this.attack = attack;
	}

	public double getDefend() {
		return defend;
	}

	public void setDefend(double defend) {
		this.defend = defend;
	}

	public int getMove() {
		return move;
	}

	public void setMove(int move) {
		this.move = move;
	}

	public ImageIcon getImage() {
		return image;
	}

	public void setImage(ImageIcon image) {
		this.image = image;
	}

	public Land getLand() {
		return land;
	}

	public void setLand(Land land) {
		this.land = land;
	}

}
